<?php
header('Content-type:text/html;charset=utf-8');
print_r($_POST) ;
if (empty($_POST['title'])) {
  echo "<script>alert('标题不能为空');window.location.href='index.html'</script>";
}
 ?>
